package com.pms.init;

import org.springframework.stereotype.Component;

import com.espirit.eap.manager.ModelBuilderSupport;
import com.pms.manager.HouseDebitChargeItemStandard;

@Component
public class HouseDebitChargeItemStandardBuilder extends ModelBuilderSupport {
	static final String HOUSE = "house";
	static final String DEBITCHARGEITEMSTANDARD = "debitChargeItemStandard";
	@Override
	public boolean init() {
		return super.setClass(HouseDebitChargeItemStandard.class, "HouseDebitChargeItemStandard", "收费项目标准");
	}
	
	@Override
	public void buildFields() {
		addModelField(HOUSE, "House", "房屋");
		addModelField(DEBITCHARGEITEMSTANDARD, "ChargeItemStandard", "收费项目标准");
	}
	
	@Override
	protected void addListFields() {
		addListField(convertPropertyToField(HOUSE, DEBITCHARGEITEMSTANDARD));
	}
	
	@Override
	protected void addDetailFields() {
		addDetailField(convertPropertyToField(HOUSE, DEBITCHARGEITEMSTANDARD));
	}

}
